//1.引入系统http模块
let http=require('http')
//2.创建服务器，request请求消息，response响应消息
let server=http.createServer(function(require,response){
    response.write("HelloWorld")
    response.end();
})
server.listen(8080,function(){
    console.log("服务器启动成功，监听端口号8080")
})